package com.example.cloud.provider.api.service;

import com.example.cloud.provider.api.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhouzeng
 * @date 2018/7/28
 */
@FeignClient(value = "service-provider")
@ResponseBody
public interface UserService {
    /**
     * 通过id查询
     *
     * @param id id
     * @return User
     */
    @RequestMapping(value = "/user/findById", method = RequestMethod.GET)
    User findById(@RequestParam("id") Long id);
}

